package com.mzj.saas.mservice.pay.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 支付宝支付明细表
 */
@Entity
@Table(name = "saas_house_zfb_pay")
public class SaasHouseZfbPay {
    /*
     *商户订单号流程号
     */
    @Id
    @Column(name = "out_trade_no", nullable = true)
    private String outTradeNo;
    /*
     *订单编号
     */
    @Column(name = "order_number", nullable = true)
    private String orderNumber;
    /*
     *付款人id
     */
    @Column(name = "participant_id")
    private String participantId;
    /*
     *支付appid
     */
    @Column(name = "appid")
    private String appid;
    /*
     *支付金额
     */
    @Column(name = "pay_amount")
    private Integer payAmount;
    /*
     *支付状态：0未支付 1已支付 4已退款 99支付失败
     */
    @Column(name = "pay_status")
    private Integer payStatus;
    /*
     *随机字符串
     */
    @Column(name = "subject")
    private String subject;
    /*
     *支付宝账号对应的支付宝唯一用户号
     */
    @Column(name = "seller_id")
    private String sellerId;
    /*
     *支付宝用户id
     */
    @Column(name = "ali_user_id")
    private String aliUserId;
    /*
     *销售产品码
     */
    @Column(name = "product_code")
    private String productCode;
    /*
     *后端回调时间
     */
    @Column(name = "callback_time")
    private Date callbackTime;
    /*
     *支付宝支付订单号
     */
    @Column(name = "trade_no")
    private String tradeNo;
    /*
     *支付通知返回状态码
     */
    @Column(name = "pay_trade_status")
    private String payTradeStatus;
    /*
     *退款金额
     */
    @Column(name = "refund_fee")
    private Integer refundFee;
    /*
     *退款发起时间
     */
    @Column(name = "refund_req_time")
    private Date refundReqTime;
    /*
     *退款响应时间
     */
    @Column(name = "refund_resp_time")
    private Date refundRespTime;
    /*
     *退款状态
     */
    @Column(name = "refund_status")
    private Integer refundStatus;
    /*
     *退款单号
     */
    @Column(name = "out_request_no")
    private String outRequestNo;
    /*
     *退款网关返回码
     */
    @Column(name = "refund_code")
    private String refundCode;
    /*
     *退款网关返回码描述
     */
    @Column(name = "refund_msg")
    private String refundMsg;
    /*
     *退款业务返回码
     */
    @Column(name = "refund_sub_code")
    private String refundSubCode;
    /*
     *退款业务返回码描述
     */
    @Column(name = "refund_sub_msg")
    private String refundSubMsg;
    /*
     *创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getParticipantId() {
        return participantId;
    }

    public void setParticipantId(String participantId) {
        this.participantId = participantId;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public Integer getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Integer payAmount) {
        this.payAmount = payAmount;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public String getAliUserId() {
        return aliUserId;
    }

    public void setAliUserId(String aliUserId) {
        this.aliUserId = aliUserId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Date getCallbackTime() {
        return callbackTime;
    }

    public void setCallbackTime(Date callbackTime) {
        this.callbackTime = callbackTime;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getPayTradeStatus() {
        return payTradeStatus;
    }

    public void setPayTradeStatus(String payTradeStatus) {
        this.payTradeStatus = payTradeStatus;
    }

    public Integer getRefundFee() {
        return refundFee;
    }

    public void setRefundFee(Integer refundFee) {
        this.refundFee = refundFee;
    }

    public Date getRefundReqTime() {
        return refundReqTime;
    }

    public void setRefundReqTime(Date refundReqTime) {
        this.refundReqTime = refundReqTime;
    }

    public Date getRefundRespTime() {
        return refundRespTime;
    }

    public void setRefundRespTime(Date refundRespTime) {
        this.refundRespTime = refundRespTime;
    }

    public Integer getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(Integer refundStatus) {
        this.refundStatus = refundStatus;
    }

    public String getOutRequestNo() {
        return outRequestNo;
    }

    public void setOutRequestNo(String outRequestNo) {
        this.outRequestNo = outRequestNo;
    }

    public String getRefundCode() {
        return refundCode;
    }

    public void setRefundCode(String refundCode) {
        this.refundCode = refundCode;
    }

    public String getRefundMsg() {
        return refundMsg;
    }

    public void setRefundMsg(String refundMsg) {
        this.refundMsg = refundMsg;
    }

    public String getRefundSubCode() {
        return refundSubCode;
    }

    public void setRefundSubCode(String refundSubCode) {
        this.refundSubCode = refundSubCode;
    }

    public String getRefundSubMsg() {
        return refundSubMsg;
    }

    public void setRefundSubMsg(String refundSubMsg) {
        this.refundSubMsg = refundSubMsg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
